<template>
	<view class="withdrawal-account">
		<!-- 提现账户 2-->
		<u-navbar leftIconSize="34rpx" autoBack :placeholder="true" bgColor="#ffffff">
			<view slot="center"><text class="c-000 pf-sc fw-600" style="font-size: 34rpx;">提现账户</text></view>
		</u-navbar>
		<view class="authentication-container w-750 b-box  bg-fa po-re" :style="{height:containerHeight}">
			<view class="d-flex flex-r ali-i-c just-s b-box w-100 bg-ff" style="padding: 36rpx 32rpx 34rpx;border-bottom: 1rpx solid #eaeaea;">
				<text class="fw-400 pf-sc" style="font-size: 30rpx;color:rgba(0,0,0,0.9000);">姓名：</text>
				<text class="fw-400 pf-sc" style="font-size: 30rpx;color:rgba(0,0,0,0.9000);">{{datainfo.name}}</text>
			</view>
			<!--  -->
			<view class="d-flex flex-c ali-i-s just-s b-box w-100 bg-ff" style="padding: 36rpx 36rpx 24rpx;margin-bottom: 80rpx;">
				<text class="fw-400 pf-sc" style="font-size: 30rpx;color:rgba(0,0,0,0.9000);margin-bottom: 10rpx;">微信收款码：</text>
				<view style="width: 198rpx;height: 198rpx;"> 
					<image :src="'https://www.chejingjing.cn'+datainfo.txcode" style="width: 198rpx;height: 198rpx;"></image>
				</view>
			</view>
			<!--  -->
			<view class="w-100 b-box d-flex flex-r ali-i-c just-c">
				<u-button :throttleTime="700" @click="GoAdd" :customStyle="{height:'88rpx',width:'670rpx',
					font:'400 32rpx PingFang SC',color:'#ffffff',borderWidth:'0rpx',background: 'linear-gradient(180deg, #4885C5 0%, #3B52A6 100%)',
					borderRadius:'44rpx'}" shape="square" text="修改">
				</u-button>
			</view>
		</view>
	</view>
</template>

<script>
	import {
		_containerHeight,
		_addUnit,
		_rpxTpx
	} from '@/utils/GetSys.js';
	import { txcode } from '@/common/api.js';
	
	import Unavbar from '../components/uview-ui/components/u-navbar/u-navbar';
	import Ubutton from '../components/uview-ui/components/u-button/u-button';
	export default {
		components: {
			'u-navbar': Unavbar,
			'u-button': Ubutton
		},
		data() {
			return {
				containerHeight:'',
				datainfo:''
			};
		},
		methods:{
			GoAdd(){  //前往修改提现账户
				uni.redirectTo({
					url:'/staffModelA/staffC/AddWithdrawalAccount/AddWithdrawalAccount'
				})
			},
			getindexcont() {
				txcode({
						token: uni.getStorageSync('user').token
						
				})
					.then(res => {
						// console.log(res, '我是用户端的');
						if (res.data.code === 1) {
							console.log(res,'哈哈哈哈');
							this.datainfo=res.data.data
							 
						}
					})
					.catch(err => {});
			},
			
		},
		onLoad() {
			this.containerHeight = _containerHeight();
			this.getindexcont()
			
		}
	}
</script>

<style lang="scss">
	.withdrawal-account{
		
	}
</style>
